<?php
class Zend_View_Helper_ReplaceEmpty extends Zend_View_Helper_Abstract
{
    public $view;

    public function replaceEmpty($str,$replace,$opt = null)
    {
        return $str ? ($opt ? $opt : $str) : $replace;
    }

    public function setView(Zend_View_Interface $view)
    {
        $this->view = $view;
    }
}
?>